package com.shopping.mall.core.module.enterprise.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
* Enterprise实体类
*
* @author zzy
* @date 2021-07-31
*/
@Data
@TableName("enterprise")
public class Enterprise {

    public interface insert{
    }

    public interface update{
    }

    @ApiModelProperty(value="用户ID")
    @TableId
    private String id;

    @ApiModelProperty(value="姓名")
    private String name;

    @ApiModelProperty(value="岗位")
    private String job;

    @ApiModelProperty(value="身份证号码")
    private String id_card;

    @ApiModelProperty(value="出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp birthday;

    @ApiModelProperty(value="性别(1男2女)")
    private Integer gender;

    @ApiModelProperty(value="地址")
    private String place;

    @ApiModelProperty(value="民族")
    private String nation;

    @ApiModelProperty(value="证件照")
    private String identification_photo;

    @ApiModelProperty(value="受教育程度")
    private String degree_of_education;

    @ApiModelProperty(value="联系电话")
    private String phone;

    @ApiModelProperty(value="身体健康状况")
    private String health_condition;

    @ApiModelProperty(value="用户状态(0审核中,1已通过,-1未通过)")
    private Integer status;

    @TableField(exist = false)
    private String languageId;
}
